import request from '@/utils/request'
// 登录
export const login = data => request.post('/sys/login', data)

export function getUserInfo() {
  return request({ url: '/sys/profile' })
}
// 修改密码
export function updatePassword(data) {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}
